const {EeeorModel}  = require("../model/resModel")

module.exports = (req,res,next) =>{
    if(req.session.username){
        next()
        return
    }
    res.json(
        new EeeorModel('未登录')
    )
}